package com.ml.mall.entity.category;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "sys_a_category")
public class SysACategory implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "create_at",fill = FieldFill.INSERT)
    private Date createAt;

    /**
     * 更新时间
     */
    @TableField(value = "update_at",fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(value = "is_delete",fill = FieldFill.INSERT)
    private Integer isDelete;

    /**
     * 目录ID
     */
    @TableField(value = "category_id")
    private String categoryId;

    /**
     * 状态
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 目录名称
     */
    @TableField(value = "category_name")
    private String categoryName;

    /**
     * 索引ID
     */
    @TableField(value = "index_no")
    private Integer indexNo;

    /**
     * 业务主键id
     */
    @TableField(value = "industry_id")
    private Integer industryId;

    /**
     * 子目录数量
     */
    @TableField(value = "sons_num")
    private Integer sonsNum;

    /**
     * 父ID
     */
    @TableField(value = "parent_id")
    private String parentId;

    @TableField(value = "pic_url")
    private String picUrl;

    @TableField(value = "tree_name")
    private String treeName;

    @TableField(value = "root_category_id")
    private String rootCategoryId;

    private static final long serialVersionUID = 1L;
}